<volist name="grouplist" id="g">
<label class="checkbox-inline" style="padding-left: 5px;">
    <input type="checkbox" name="group_access_id[]" value="{$g['id']}"  <if condition="$g['selectedcheck'] eq true">checked</if>>
    <span class="custom-checkbox"></span> {$g['title']}
</label>
</volist>